<!DOCTYPE html>
<html lang="zh-CN">
  <head>
    <meta charset="UTF-8" />
    <meta name="viewport" content="width=device-width, initial-scale=1.0" />
    <title>个人中心 - 医学标本展览馆</title>
    <link rel="stylesheet" href="styles/main.css" />
    <link
      href="https://fonts.googleapis.com/icon?family=Material+Icons"
      rel="stylesheet"
    />
  </head>
  <body>
    <!-- 顶部通栏 -->
    <header class="header">
      <div class="container header-content">
        <div class="logo">
          <img
            src="https://via.placeholder.com/200x60/5a8dee/ffffff?text=医学标本展览馆"
            alt="医学标本展览馆"
            height="40"
          />
        </div>
      </div>
    </header>

    <!-- 主要内容区 -->
    <main class="main-content">
      <div class="container">
        <!-- 用户信息卡片 -->
        <section class="user-card">
          <div class="user-info">
            <div class="avatar">
              <img
                src="https://via.placeholder.com/200x200/5a8dee/ffffff?text=用户头像"
                alt="用户头像"
              />
            </div>
            <div class="user-details">
              <h2>张医生</h2>
              <span class="member-tag">VIP会员</span>
            </div>
          </div>
        </section>

        <!-- 功能入口 -->
        <section class="function-grid">
          <a href="#" class="function-item">
            <span class="material-icons">event</span>
            <span>我的预约</span>
          </a>
          <a href="#" class="function-item">
            <span class="material-icons">favorite</span>
            <span>收藏记录</span>
          </a>
          <a href="#" class="function-item">
            <span class="material-icons">settings</span>
            <span>设置</span>
          </a>
          <a href="#" class="function-item">
            <span class="material-icons">info</span>
            <span>关于</span>
          </a>
        </section>

        <!-- 消息通知 -->
        <section class="message-list">
          <h2>消息通知</h2>
          <div class="message-items">
            <div class="message-item unread">
              <div class="message-icon">
                <span class="material-icons">notifications</span>
                <span class="badge"></span>
              </div>
              <div class="message-content">
                <h3>预约成功通知</h3>
                <p>您的参观预约已确认，请准时到达</p>
              </div>
              <span class="message-time">10分钟前</span>
            </div>
            <div class="message-item">
              <div class="message-icon">
                <span class="material-icons">info</span>
              </div>
              <div class="message-content">
                <h3>系统通知</h3>
                <p>展览馆新增3D解剖展示区，欢迎体验</p>
              </div>
              <span class="message-time">2小时前</span>
            </div>
          </div>
        </section>

        <!-- 退出登录按钮 -->
        <button class="logout-btn">退出登录</button>
      </div>
    </main>

    <!-- 底部导航栏 -->
    <nav class="nav-bar">
      <a href="index.html" class="nav-item">
        <span class="material-icons">home</span>
        <span>首页</span>
      </a>
      <a href="exhibition.html" class="nav-item">
        <span class="material-icons">museum</span>
        <span>展览</span>
      </a>
      <a href="booking.html" class="nav-item">
        <span class="material-icons">event</span>
        <span>预约</span>
      </a>
      <a href="profile.html" class="nav-item active">
        <span class="material-icons">person</span>
        <span>我的</span>
      </a>
    </nav>

    <style>
      /* 用户信息卡片样式 */
      .user-card {
        background: var(--primary-gradient);
        border-radius: var(--border-radius-lg);
        padding: var(--spacing-xl);
        margin-bottom: var(--spacing-xl);
        color: white;
      }

      .user-info {
        display: flex;
        align-items: center;
        gap: var(--spacing-lg);
      }

      .avatar {
        width: 80px;
        height: 80px;
        border-radius: 50%;
        overflow: hidden;
        border: 3px solid rgba(255, 255, 255, 0.3);
      }

      .avatar img {
        width: 100%;
        height: 100%;
        object-fit: cover;
      }

      .user-details h2 {
        font-size: 24px;
        margin-bottom: var(--spacing-xs);
        color: white;
      }

      .member-tag {
        background: rgba(255, 255, 255, 0.2);
        padding: var(--spacing-xs) var(--spacing-sm);
        border-radius: var(--border-radius-sm);
        font-size: 12px;
      }

      /* 功能入口样式 */
      .function-grid {
        display: grid;
        grid-template-columns: repeat(4, 1fr);
        gap: var(--spacing-md);
        margin-bottom: var(--spacing-xl);
      }

      .function-item {
        display: flex;
        flex-direction: column;
        align-items: center;
        text-decoration: none;
        color: var(--text-primary);
        padding: var(--spacing-md);
        background: white;
        border-radius: var(--border-radius-md);
        box-shadow: var(--card-shadow);
        transition: all 0.3s ease;
      }

      .function-item:hover {
        transform: translateY(-4px);
        box-shadow: var(--hover-shadow);
      }

      .function-item .material-icons {
        font-size: 32px;
        margin-bottom: var(--spacing-sm);
        color: var(--primary-color);
      }

      /* 消息列表样式 */
      .message-list {
        margin-bottom: var(--spacing-xl);
      }

      .message-items {
        display: flex;
        flex-direction: column;
        gap: var(--spacing-md);
      }

      .message-item {
        display: flex;
        align-items: center;
        gap: var(--spacing-md);
        padding: var(--spacing-md);
        background: white;
        border-radius: var(--border-radius-md);
        box-shadow: var(--card-shadow);
      }

      .message-item.unread {
        background: rgba(90, 141, 238, 0.05);
      }

      .message-icon {
        position: relative;
      }

      .message-icon .material-icons {
        font-size: 24px;
        color: var(--primary-color);
      }

      .badge {
        position: absolute;
        top: -2px;
        right: -2px;
        width: 8px;
        height: 8px;
        background: #ff4d4f;
        border-radius: 50%;
        border: 2px solid white;
      }

      .message-content {
        flex: 1;
      }

      .message-content h3 {
        font-size: 14px;
        margin-bottom: var(--spacing-xs);
      }

      .message-content p {
        font-size: 12px;
        color: var(--text-secondary);
      }

      .message-time {
        font-size: 12px;
        color: var(--text-light);
      }

      /* 退出登录按钮样式 */
      .logout-btn {
        width: 100%;
        padding: var(--spacing-md);
        background: none;
        border: 1px solid #e0e0e0;
        border-radius: var(--border-radius-md);
        color: var(--text-secondary);
        font-size: 14px;
        cursor: pointer;
        transition: all 0.3s ease;
      }

      .logout-btn:hover {
        background: #f8f9fa;
        color: var(--primary-color);
      }

      /* 响应式调整 */
      @media (max-width: 768px) {
        .function-grid {
          grid-template-columns: repeat(2, 1fr);
        }

        .user-card {
          padding: var(--spacing-lg);
        }

        .avatar {
          width: 60px;
          height: 60px;
        }

        .user-details h2 {
          font-size: 20px;
        }
      }

      /* 顶部通栏样式 */
      .header {
        background: linear-gradient(135deg, #f8f9fa 0%, #e9ecef 100%);
        padding: var(--spacing-md) 0;
        box-shadow: var(--card-shadow);
      }

      .header-content {
        display: flex;
        justify-content: center;
        align-items: center;
      }
    </style>
  </body>
</html>
